import request from '@/utils/axios'
import {
    appUrl
} from '@/utils/env'

export function getThemeList(data) {
    return request({
        url: appUrl + '/theme/search',
        method: 'post',
        data
    })
}

export function addTheme(data) {
    return request({
        url: appUrl + '/theme/create',
        method: 'post',
        data
    })
}

export function editTheme(data) {
    return request({
        url: appUrl + '/theme/update',
        method: 'post',
        data
    })
}

export function getThemeInfo(data) {
    return request({
        url: appUrl + '/theme/info',
        method: 'post',
        data
    })
}

export function deleteTheme(data) {
    return request({
        url: appUrl + '/theme/delete',
        method: 'post',
        data
    })
}

export function getAllTheme(data) {
    return request({
        url: appUrl + '/theme/list',
        method: 'post',
        data: {}
    })
}
